From: Jan Beulich Date: Fri, 17 May 2019 12:40:12 +0000 (+0200) Subject: cpufreq: patch target() indirect call to direct one X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~2223 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=f3866e4d9d95283f9a69a138c7343d746d7be0ec;p=xen.git cpufreq: patch target() indirect call to direct one This looks to be the only frequently executed hook; don't bother patching any other ones. Signed-off-by: Jan Beulich Reviewed-by: Wei Liu Acked-by: Andrew Cooper --- diff --git a/xen/drivers/cpufreq/utility.c b/xen/drivers/cpufreq/utility.c index 15e15fd458..b93895d4dd 100644 --- a/xen/drivers/cpufreq/utility.c +++ b/xen/drivers/cpufreq/utility.c @@ -364,7 +364,8 @@ int __cpufreq_driver_target(struct cpufreq_policy *policy, { unsigned int prev_freq = policy->cur; - retval = cpufreq_driver.target(policy, target_freq, relation); + retval = alternative_call(cpufreq_driver.target, + policy, target_freq, relation); if ( retval == 0 ) TRACE_2D(TRC_PM_FREQ_CHANGE, prev_freq/1000, policy->cur/1000); }